package com.akcome.apollo.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.akcome.apollo.domain.VBmpAcount;

/**
 * VIEWRepository接口
 *
 * @author wn
 * @version $v: 1.0.0, $time:2017-12-26 08:49:00 Exp $
 */
public interface VBmpAcountRepository extends JpaRepository<VBmpAcount,Long>,JpaSpecificationExecutor<VBmpAcount> {

	@Query(nativeQuery=true,value="select * from v_bmp_acount where update_time>=?1 and coin_type in(?2) order by id asc limit ?3,?4 ")
	List<VBmpAcount> getUserInfoList(String update_time,List<String> coinTypeList,int pageIndex,int size);
	
	@Query(nativeQuery=true,value="select * from v_bmp_acount where update_time>=?1 and coin_type in(?2) order by id asc ")
	List<VBmpAcount> getUserInfoList(String update_time,List<String> coinTypeList);
}
